This page last changed on Dec 02, 2012 by rp7772.

Below are some IDL script examples, written by 2010-11 BSc Project student, Richard Painter:



Name Size Creator Creation Date Comment  
File data_reduction.pro 1 kB Richard Painter Jul 14, 2011 19:18 "data_reduction.pro" IDL procedure. Fully reduces raw data utilizing the "fixbadpixel.pro" routine listed below. See below for installation instructions.
Text File data_reduction.pro.txt 2 kB Richard Painter Jul 14, 2011 19:18 Clickable text file, with source code for the "data_reduction.pro" IDL procedure.
File fixbadpixel.pro 4 kB Richard Painter Jul 14, 2011 19:18 "fixbadpixel.pro" IDL procedure. Iteratively identifies bad pixels using input mask. Replaces a bad pixel's value with the mean of its neighbouring pixels. See below for installation instructions.
Text File fixbadpixel.pro.txt 4 kB Richard Painter Jul 14, 2011 19:18 Clickable text file, with source code for the "fixbadpixel.pro" IDL procedure.


Installation Insructions: fixbadpixel.pro

To use the fixbadpixel.pro routine;

  • Copy the "fixbadpixel.pro" file to your home folder on Starlink
  • Either type:
.compile '~/fixbadpixel.pro'


Or simply let IDL compile the procdure for you by typing in the calling sequence for the fixbadpixel.pro procedure, which is as follows:

result=fixbadpixel(data,mask)
  • The following arrays must have been previously read in by the user. All must be of identical dimensions to the raw image frame:
    • data: raw image frame
    • mask: corresponding mask frame
  • result, data and mask can be renamed as required in the above calling sequence.


Installation Insructions: data_reduction.pro
  • Follow instructions as above for the data_reduction.pro installation. Ensure you copy both the "fixbadpixel.pro" and "data_reduction.pro" files to your home folder on Starlink before calling this procedure.
  • The data_reduction.pro calling sequence is as follows:
result=data_reduction(data,exposure,mbias,mdark,mflat,mask)
  • The following arrays must have been previously read in by the user. All must be of identical dimensions to the raw image frame:
    • data: raw image frame
    • mask: corresponding mask frame
    • mbias: corresponding master bias frame
    • mdark: corresponding master scaled dark frame
    • mflat: corresponding master flat frame
  • exposure is an integer number, containing the exposure length of raw image in seconds.
  • result, data , mbias, mdark, mflat and mask can be renamed as required in the above calling sequence.

data_reduction.pro (application/octet-stream)
data_reduction.pro.txt (text/plain)
fixbadpixel.pro (application/octet-stream)
fixbadpixel.pro.txt (text/plain)
Document generated by Confluence on Jun 12, 2013 09:50